package com.bw.live_streaming.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.common.utils.PageUtils;
import com.bw.common.utils.Query;

import com.bw.live_streaming.dao.SlideshowDao;
import com.bw.live_streaming.entity.SlideshowEntity;
import com.bw.live_streaming.service.SlideshowService;


@Service("slideshowService")
public class SlideshowServiceImpl extends ServiceImpl<SlideshowDao, SlideshowEntity> implements SlideshowService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SlideshowEntity> page = this.page(
                new Query<SlideshowEntity>().getPage(params),
                new QueryWrapper<SlideshowEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public List<SlideshowEntity> lists() {
        return baseMapper.lists();
    }

}